const KEY = "my-token";

// 保存token
export const setToken = (data) => {
   localStorage.setItem(KEY, data);
};

// 取出token
export const getToken = () => {
  return localStorage.getItem(KEY);
};

// 删除token
export const removeToken = () => {
  return localStorage.removeItem(KEY);
};
